package org.micode.demo.biz.service;

import org.micode.demo.biz.vo.SysUserVO;
import org.micode.demo.db.cache.user.SysUserCache;
import org.micode.demo.db.domain.dto.SysUserDTO;
import org.micode.demo.db.vo.ChangePwdVO;

import java.util.Set;

public interface BizSysUserService {

    SysUserDTO loginForTest(SysUserVO userVO);

    SysUserDTO loginByAccount(SysUserVO userVO);

    Boolean userLogout(SysUserCache userCache);

    Integer updateUserPassword(ChangePwdVO pwdVO);

    Integer resetPassword(SysUserDTO sysUser);

    SysUserDTO insert(SysUserDTO userDTO);

    Set<String> getUserPermissions(Long userId);

    String decryptPassword(String pwd);

}
